package caiziyou.com.objms;

public class EqualTests {

	public static void main(String[] args) {
		int a = 10;
		short b = 10;
		System.out.println(a == b);

		char c = '1';

		System.out.println(a == c);

		String str1 = "123";
		String str2 = "123";
		System.out.println(str1 == str2);

		String str3 = new String("123");

		System.out.println(str1 == str3);
		
		
		String str4 = null;
		String str5 = "null";
		
		System.out.println(str4 == str5);
		System.out.println(str5.equals(str4));
		
		/**
		 * 基本数据类型比较大小
		 */
		int f1 = 65;
		double d1 = 65.000;
		System.out.println(f1==d1);
	}
}
